<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="ie"><!--<![endif]-->
<head>
    <meta charset="utf-8">
    <title>免费注册</title>
    <meta name="viewport"
          content="width=320.1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="Stylesheet" type="text/css" href="{php echo $this->_css_url}mian.css">
    <link rel="stylesheet" type="text/css" href="{php echo $this->_css_url}myctrip.css">
       <script language='javascript' src='{php echo $this->_script_url}jquery.js'></script>
    <script language='javascript' src='{php echo $this->_script_url}common.js'></script>
    <script language='javascript' src='{php echo $this->_script_url}jquery.form.js'></script>
    
</head>
<body onselectstart="return false" tabindex="10000">
<div id="headerview" style="height: 48px;">
    <header><h1>免费注册</h1><i id="c-ui-header-return" class="returnico i_bef" onclick="javascript:history.back();"></i>
    </header>
</div>
<div id="main" class="h100">
    <div class="main-frame">
        <div class="main-viewport">
            <!--<div class="sub-viewport" id="id_viewport2" page-id="212054" page-url="account/forgetpass"-->
            <!--style="display: none;">-->
            <!--<article class="p10">-->
            <!--<ul class="conlist">-->
            <!--<li class="li_inputbox clear-input-box">-->
            <!--<input required="" class="li_input" id="txtPhone" type="tel" placeholder="注册或账户绑定的手机号码"><a-->
            <!--class="clear-input " href="javascript:;" style="display: none;"><span></span></a>-->
            <!--<a class="clear-input " href="javascript:;"><span></span></a>-->
            <!--</li>-->
            <!--<li class="pwdhint">-->
            <!--<p>1.重置密码限每天使用三次。请在收到临时密码后尽快修改密码。</p>-->

            <!--<p>2.如果您的帐号未绑定手机，无法重置密码，您可以致电客服 <a href="tel:4000086666"-->
            <!--class="__hreftel__">400-008-6666</a> 进行人工服务。</p>-->
            <!--</li>-->
            <!--</ul>-->
            <!--<input type="button" id="modifyBtn" class="mainbtn" value="发送密码至手机">-->
            <!--</article>-->
            <!--</div>-->
            <div class="sub-viewport" id="id_viewport4" page-id="212052" page-url="account/login"
                 style="display: none;">
                <article class="p10">
                    <ul class="query jstab" style="display: none;">
                        <li for="login" class="on">登录查询</li>
                        <!--<li for="notlogin">免登录查询</li>-->
                    </ul>
                    <!--登录查询-->
                    <!--<div id="login">-->
                        <!--<ul class="conlist">-->
                            <!--<li class="li_inputbox clear-input-box">-->
                                <!--<input autofocus="" maxlength="30" class="li_input" tabindex="1" id="username"-->
                                       <!--type="text" required="" value="" placeholder="用户名/邮箱/手机号码"><a-->
                                    <!--class="clear-input " href="javascript:;" style="display: none;"><span></span></a>-->
                            <!--</li>-->
                            <!--<li class="li_inputbox clear-input-box">-->
                                <!--<input class="li_input" maxlength="20" required="" tabindex="2" id="password"-->
                                       <!--type="password" placeholder="密码(6-20位字符)"><a class="clear-input "-->
                                                                                    <!--href="javascript:;"-->
                                                                                    <!--style="display: none;"><span></span></a>-->
                            <!--</li>-->
                        <!--</ul>-->
                        <!--<ul class="overflow loginmr p10" id="wechatBox" style="display:none;">-->
                            <!--<li class="fl"><label for=""><i class="checkbox checked" id="bindwechat"></i>关联微信帐号</label>-->
                            <!--</li>-->
                            <!--<li class="fr"><a href="/webapp/cpage/#comment?biztype=myctrip&amp;cmttype=relevance"-->
                                              <!--class="cblue">查看关联说明</a></li>-->
                        <!--</ul>-->
                        <!--<input type="button" class="mainbtn" id="submit" value="登录">-->
                    <!--</div>-->
                    <!--免登录查询-->
                    <!--<div id="notlogin" style=" display:none;">-->
                    <!--<ul class="conlist">-->
                    <!--<li class="li_inputbox clear-input-box">-->
                    <!--<input id="mobile" tabindex="1" type="tel" required="" value="" maxlength="11"-->
                    <!--placeholder="联系人手机号码（必填）"><a class="clear-input " href="javascript:;"-->
                    <!--style="display: none;"><span></span></a>-->
                    <!--</li>-->
                    <!--<li class="li_verify overflow">-->
                    <!--<div class="li_inputbox fl clear-input-box">-->
                    <!--<input type="tel" required="" value="" id="verifycode" maxlength="4"-->
                    <!--placeholder="验证码（必填）"><a class="clear-input " href="javascript:;"-->
                    <!--style="display: none;"><span></span></a>-->
                    <!--</div>-->
                    <!--<button class="s_btn fr" id="updateverify" value="获取验证码">获取验证码</button>-->
                    <!--<p class="corange clear">*仅支持非会员订单</p>-->
                    <!--</li>-->
                    <!--</ul>-->
                    <!--<input type="button" class="mainbtn" id="nologinsubmit" value="查询">-->
                    <!--</div>-->
                    <!--免登录查询-->
                    <!--<aside class="loginlink overflow">-->
                        <!--<span class="fl jsreg" style="font-size: 16px;color: #29a2f7;">免费注册</span>-->
                        <!--<span class="fr js_getpass" style="font-size: 16px;color: #29a2f7;">忘记密码</span>-->
                    <!--</aside>-->
                    <!--<p class="reggift">注册即享1000积分和800元消费券</p>-->
                </article>
            </div>
            <form name="form1" method="POST" action="" id='data_form'>
            <div class="sub-viewport" id="id_viewport6" page-id="212053" page-url="account/reg">
                <article class="p10">
                    <!--<p class="reggift1">现在注册即可获得<i class="corange">1000</i>积分和<i class="corange">800</i>元消费券</p>-->
                    <!--免费注册-->
                    <ul class="conlist">
                        <li class="li_inputbox clear-input-box">
                            <input id="username" name="username" tabindex="1" type="text" placeholder="用户名"
                                   maxlength="11" required="" class="li_input"><a class="clear-input "
                                                                                  href="javascript:;"
                                                                                  style="display: none;"><span></span></a>
                            <a class="clear-input " href="javascript:;"><span></span></a>
                        </li>

                        <li class="li_inputbox clear-input-box">
                            <input maxlength="20" id="password" name="password" tabindex="2" type="password"
                                   placeholder="密码（6-20位英文或数字字符）" required="" class="li_input"><a class="clear-input "
                                                                                                  href="javascript:;"
                                                                                                  style="display: none;"><span></span></a>
                            <a class="clear-input " href="javascript:;"><span></span></a>
                        </li>
                        <li class="li_inputbox clear-input-box">
                            <input tabindex="3" id="password2" name="password2" type="password" placeholder="重复密码"
                                   maxlength="20" required="" class="li_input"><a class="clear-input "
                                                                                  href="javascript:;"
                                                                                  style="display: none;"><span></span></a>
                            <a class="clear-input " href="javascript:;"><span></span></a>
                        </li>
                        <li class="li_inputbox clear-input-box">
                            <input id="mobile" name="mobile" tabindex="1" type="tel" placeholder="请输入您的手机号码"
                                   maxlength="11" required="" class="li_input"><a class="clear-input "
                                                                                  href="javascript:;"
                                                                                  style="display: none;"><span></span></a>
                            <a class="clear-input " href="javascript:;"><span></span></a>
                        </li>

                        <li class="li_inputbox clear-input-box">
                            <input id="realname" name="realname" tabindex="1" type="text" placeholder="请输入您的姓名"
                                   maxlength="11" required="" class="li_input"><a class="clear-input "
                                                                                  href="javascript:;"
                                                                                  style="display: none;"><span></span></a>
                            <a class="clear-input " href="javascript:;"><span></span></a>
                        </li>
                    </ul>
                    <input type="button" class="mainbtn" id="data_submit" value="完成">
                    <input type="hidden" name="submit" value="1" />
                    <input type="hidden" name="token" value="{$_W['token']}" />
                    <aside class="loginlink overflow">
                        <span class="fl jsreg" style="font-size: 16px;color: #29a2f7;"
                              onClick="location.href='{php echo $this->createMobileUrl('login')}'">登录</span>
                        <!--<span class="fr js_getpass" style="font-size: 16px;color: #29a2f7;">忘记密码</span>-->
                    </aside>
                    <!--免费注册-->
                </article>
            </div>
            </form>
        </div>
        <div class="main-state"></div>
    </div>
</div>
<div id="footer"></div>
<input type="hidden" id="page_id" value="212053">
<input type="hidden" id="bf_ubt_orderid" value="">
<!--<script type="text/javascript" src="../res/libs/json2.js"></script>-->
<!--<script type="text/javascript" src="http://res.m.ctrip.com/html5/scripts/require.min.js"></script>-->
<!--<script type="text/javascript" src="../res/libs/include.libs.js"></script>-->
<!--<script type="text/javascript" src="http://res.m.ctrip.com/html5/scripts/libs_v1.0_build201403032100.js"></script>-->
<!--<script type="text/javascript">
    var libs = 'libs_r_3.js';
    if (!('__proto__' in {})) {
        libs = 'libs_jq_r_1.1.js';
    }
    document.write('<script type="text/javascript" src="http://res.m.ctrip.com/html5/scripts/' + libs + '"></' + 'script>');
</script>-->
<!--<script type="text/javascript" src="../app/1.0/web/common.js"></script>-->
<!--<script type="text/javascript" src="./dest/main.js"></script>-->

<!-- insert ga -->
<!--<script type="text/javascript" src="../res/libs/include.ga.js"></script>-->
<!--<script>var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-3748357-1']); _gaq.push(['_setDomainName', '.ctrip.com']); _gaq.push(['_setAllowHash', false]); _gaq.push(['_addOrganic', 'soso', 'w']); _gaq.push(['_addOrganic', 'sogou', 'query']); _gaq.push(['_addOrganic', 'youdao', 'q']); _gaq.push(['_addOrganic', 'so.360.cn', 'q']); _gaq.push(['_addOrganic', 'so.com', 'q']); _gaq.push(['_addOrganic', 'm.baidu.com', 'word']); _gaq.push(['_addOrganic', 'wap.baidu.com', 'word']); _gaq.push(['_addOrganic', 'wap.soso.com', 'key']); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>-->

<!-- insert ubt -->
<!--<script type="text/javascript" src="../res/libs/include.ubt.js"></script>-->
<!--<script type="text/javascript">!function () { var a, b, c, d, e, f, g, i; if (!location.host.match(/localhost|172\.16|127\.0|210\.13/gi)) { for (a = document.getElementsByTagName("script") || [], b = /_bfa\.min\.js/i, c = 0; c < a.length; c++) if (b.test(a[c].src)) return; if (!(window.$_bf || window.$LAB || window.CtripJsLoader)) { d = new Date, e = "?v=" + d.getFullYear() + d.getMonth() + "_" + d.getDate() + ".js", f = document.createElement("script"), f.type = "text/javascript", f.charset = "utf-8", f.async = !0; try { g = "https:" == document.location.protocol } catch (h) { g = "https:" == document.URL.match(/[^:]+/) + ":" } f.src = g ? "https://s.c-ctrip.com/_bfa.min.js" + e : "http://webresource.c-ctrip.com/code/ubt/_bfa.min.js" + e, i = document.getElementsByTagName("script")[0], i.parentNode.insertBefore(f, i) } } } ();</script>-->

{php include $this->template('hotel_msg')}
<script type="text/javascript">
    $(function(){
        $("#data_form").ajaxForm();

        $("#data_submit").click(function(){
            var username = $("#username").val();
            var password = $("#password").val();
            var password2 = $("#password2").val();

            if (username == '' || password == '') {
                show_msg("用户名和密码不能为空", 2000);
                return false;
            }

            if (password != password2) {
                show_msg("两次密码不一致，请确认！", 2000);
                return false;
            }

            if ($("#mobile").val() == '') {
                show_msg("请填写手机号码", 2000);
                return false;
            }

            if ($("#realname").val() == '') {
                show_msg("请填写姓名", 2000);
                return false;
            }

            $("#data_form").ajaxSubmit({
                success:function(data){
                    //alert(data);return false;
                    data  =eval("(" + data +")");
                    if(data.result==1){
                        location.href = data.url;
                    }
                    else{
                        show_msg(data.error, 2000);
                        return false;
                    }
                }

            });

        });
    });
</script>

{template 'share'}

</body>
</html>